<ul id="main_menu">
	<li id="yp_logo">
		<a href="javascript:void(0);"><img src="gui/yp_hand.gif" alt="" /></a>
		<ul>
			<li><a href="javascript:void(0)" onClick="showAboutYP();">O firmi...</a></li>
		</ul>
	</li>
	<li>
		<a href="javascript:void(0);">Korisnik</a>
		<ul>
			<li style="background:url(gui/icons/users/{{$user_level}}.gif) no-repeat right center;">
				<span title="{{$user_level}}&nbsp;-&nbsp;{{$user_last_login}}">
					{{$user_ime}}&nbsp;
					<script>
					var prez = trim('{{$user_prezime}}');
					if(prez.length){
						document.write(' '+prez.substr(0,1)+".")
					}
					</script>
				</span></li>
			<li><a href="javascript:void(0)" onClick="logout();">logout</a></li>
		</ul>
	</li>
	<li>
		<a href="javascript:void(0);">Komitenti</a><ul><li class="sub">
				<a class="search" href="javascript:void(0)">Pretraga</a>
				<ul>
					<li>
						<form style="padding:0px; float:none; margin:0px;" method="post" action="javascript:void(0)" onSubmit="var k=this.search_name; if(k.value.length){searchKomitent(this,'pib',k.value)}else{k.focus();k.select()}">
							<label for="search_name">PIB / MBR:</label><input name="search_name" id="search_name" type="text" />
							<input type="submit" value="traži" class="submit" />
						</form>
					</li>
					<li>
						<form style="padding:0px; float:none; margin:0px;" method="post" action="javascript:void(0)" onSubmit="var k=this.search_name; if(k.value.length){searchKomitent(this,'ime',k.value)}else{k.focus();k.select()}">
							<label for="search_name">Naziv:</label><input name="search_name" id="search_name" type="text" />
							<input type="submit" value="traži" class="submit" />
						</form>
					</li>
					<li>
						<form style="padding:0px; float:none; margin:0px;" method="post" action="javascript:void(0)" onSubmit="var k=this.search_sifra; if(k.value.length){searchKomitent(this,'sifra',k.value)}else{k.focus();k.select()}">
							<label for="search_sifra">Šifra:</label><input name="search_sifra" id="search_sifra" type="text" />
							<input type="submit" value="traži" class="submit" />
						</form>
					</li>
					<li>
						<form style="padding:0px; float:none; margin:0px;" method="post" action="javascript:void(0)" onSubmit="var k=this.search_name; if(k.value.length){searchKomitent(this,'adresa',k.value)}else{k.focus();k.select()}">
							<label for="search_name">Adresa:</label><input name="search_name" id="search_name" type="text" />
							<input type="submit" value="traži" class="submit" />
						</form>
					</li>
					<li>
						<form style="padding:0px; float:none; margin:0px;" method="post" action="javascript:void(0)" onSubmit="var k=this.search_name; if(k.value.length){searchKomitent(this,'kontakt',k.value)}else{k.focus();k.select()}">
							<label for="search_name">Kontakt:</label><input name="search_name" id="search_name" type="text" />
							<input type="submit" value="traži" class="submit" />
						</form>
					</li>
					<li>
						<form style="padding:0px; float:none; margin:0px;" method="post" action="javascript:void(0)" onSubmit="var k=this.search_name; if(k.value.length){searchKomitent(this,'zr',k.value)}else{k.focus();k.select()}">
							<label for="search_name">ŽR:</label><input name="search_name" id="search_name" type="text" />
							<input type="submit" value="traži" class="submit" />
						</form>
					</li>
					<li>
						<form style="padding:0px; float:none; margin:0px;" method="post" action="javascript:void(0)" onSubmit="var k=this.search_name; if(k.value.length>2){searchKomitent(this,'keyword',k.value)}else{k.focus();k.select()}">
							<label for="search_name">Reč:</label>
							<input name="search_name" id="search_name" type="text" />
							<input type="submit" value="traži" class="submit" />
						</form>
					</li>
					<li><a href="javascript:void(0)" onClick="LoadRSDoc('komitenti.php?a=search','setContent')">Napredna pretraga...</a></li>
				</ul>
			</li>
			<li><a href="javascript:void(0)" onClick="LoadRSDoc('komitenti.php','setContent')">Pregled</a></li>
			</ul>
	</li>
	<li {{$off}}>
		<a href="javascript:void(0)">Rokovnik</a><ul>
		<li>
				<a href="javascript:void(0)" onClick="LoadRSDoc('rokovnik.php?a=kom','setContent')">Komercijalista</a></li>
		</ul>
	</li>
	<li>
		<a href="javascript:void(0)">Opcije</a>
		<ul>
			{{$options}}
			<li><a href="javascript:void(0);" onClick="window.print();">Štampaj...</a></li>
		</ul>
	</li>
	<li id="history_nav">
		<input type="button" id="history_back" onClick="historyBack()" value="<<" title="nazad" disabled="disabled" />
		<input type="button" onClick="historyShow()" value="history" style="display:none;" />
		<input type="button" id="history_forward" onClick="historyForward()" value=">>" title="napred" disabled="disabled" />
	</li>
</ul>
